-
Home
-
WP Travel Engine – Tour Booking Plugin – Tour Operator Software
-
6.5.0 (latest)
-
Code
-
Classes
- Cart
Total Complexity |
118 |
Dependencies |
10 |
Dependents |
14 |
Total lines |
1,146 |
Lines of code |
478 |
Logical lines of code |
272 |
Comment lines |
464 |
Methods |
64 |
Properties |
20 |
Methods 64
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
add() |
S |
44 |
6 |
44 |
calculate_discount() |
S |
53 |
7 |
23 |
calculate_totals() |
S |
51 |
6 |
27 |
load_line_items() |
S |
57 |
6 |
16 |
update() |
S |
55 |
5 |
21 |
load() |
S |
58 |
5 |
16 |
write() |
S |
53 |
4 |
22 |
add_discount_values() |
S |
52 |
3 |
25 |
data() |
S |
54 |
2 |
22 |
load_deductible_items() |
S |
66 |
3 |
8 |
read() |
S |
58 |
2 |
15 |
get_cart_coupon_value() |
S |
70 |
3 |
5 |
get_cart_coupon_type() |
S |
70 |
3 |
5 |
apply_tax() |
S |
70 |
3 |
6 |
get_cart_coupon_name() |
S |
70 |
3 |
5 |
load_fees() |
S |
66 |
3 |
8 |
get_formated_items() |
S |
68 |
2 |
7 |
add_deductible_items() |
S |
69 |
2 |
7 |
getItems() |
S |
79 |
2 |
3 |
add_fee() |
S |
69 |
2 |
7 |
get_attribute() |
S |
71 |
2 |
6 |
get_totals() |
S |
74 |
2 |
4 |
clear() |
S |
61 |
1 |
13 |
get_total() |
S |
59 |
1 |
13 |
get_due_total() |
S |
80 |
1 |
3 |
get_total_partial() |
S |
80 |
1 |
3 |
get_cart_total() |
S |
80 |
1 |
3 |
get_payment_type() |
S |
82 |
1 |
3 |
get_discount_total() |
S |
78 |
1 |
3 |
get_discount_amount() |
S |
78 |
1 |
3 |
get_cart_trip_ids() |
S |
79 |
1 |
3 |
is_loaded_from_booking() |
S |
80 |
1 |
3 |
get_subtotal() |
S |
78 |
1 |
3 |
get_booking_ref() |
S |
82 |
1 |
3 |
discount_clear() |
S |
74 |
1 |
5 |
get_extra_services_totals() |
S |
67 |
1 |
9 |
apply_discounts() |
S |
80 |
1 |
3 |
tax() |
S |
82 |
1 |
3 |
__construct() |
S |
66 |
1 |
8 |
setItems() |
S |
81 |
1 |
3 |
remove() |
S |
73 |
1 |
5 |
set_payment_type() |
S |
81 |
1 |
3 |
get_additional_line_items() |
S |
78 |
1 |
3 |
get_fees() |
S |
68 |
1 |
7 |
set_fees() |
S |
81 |
1 |
3 |
get_cart_items() |
S |
82 |
1 |
3 |
add_additional_line_items() |
S |
80 |
1 |
3 |
get_cart_id() |
S |
82 |
1 |
3 |
get_cart_key() |
S |
82 |
1 |
3 |
output() |
S |
75 |
1 |
4 |
reset_totals() |
S |
81 |
1 |
3 |
set_payment_gateway() |
S |
81 |
1 |
3 |
read_cart_onload() |
S |
82 |
1 |
3 |
set_booking_ref() |
S |
81 |
1 |
3 |
set_cart_key() |
S |
81 |
1 |
3 |
update_cart() |
S |
82 |
1 |
3 |
has_discounts() |
S |
80 |
1 |
3 |
get_discounts() |
S |
82 |
1 |
3 |
get_deductible_items() |
S |
68 |
1 |
7 |
cart_empty_message() |
S |
67 |
1 |
8 |
get_attributes() |
S |
82 |
1 |
3 |
set_attributes() |
S |
81 |
1 |
3 |
set_attribute() |
S |
76 |
1 |
4 |
__clone() |
S |
81 |
1 |
3 |